package com.agrm.order.mapper;

import com.agrm.model.order.pojo.Order;
import com.agrm.model.order.pojo.OrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    /**
     * 批量插入
     * @param orderItems 订单商品项
     */
    void insertBatch(@Param("orderItems") List<OrderItem> orderItems);
}
